package router

import (
	"alarm_service/internal/api"
	"github.com/gin-gonic/gin"
)

var _ IRouter = (*Router)(nil)

// IRouter 注册路由
type IRouter interface {
	Register(e *gin.Engine) error
}

type Router struct {
	CommandApi *api.CommandApi
}

// Register 注册路由
func (r *Router) Register(e *gin.Engine) error {
	r.registerApi(e)
	return nil
}
